package com.qst.repository;

import com.qst.pojo.entity.OrderItem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 订单物品明细 Repository
 */
@Repository
public interface OrderItemRepository extends JpaRepository<OrderItem, Integer> {
    
    /**
     * 根据订单ID查询订单�?
     */
    List<OrderItem> findByOrderId(Integer orderId);
    
    /**
     * 根据订单ID删除订单�?
     */
    void deleteByOrderId(Integer orderId);
}

